import axios_obj from './axios-config' //导入axios
const $http = (options) => {
    const {
        method,
        url,
        data
    } = options
    return new Promise((reslove, reject) => {
        axios_obj({
            method,
            url,
            data
        }).then((backdata) => {
            reslove(backdata)
        }).catch((err) => {
            reject(err)
        })
    })

}


export default $http